package demoMod.invincibleOne.patches;

import com.evacipated.cardcrawl.modthespire.lib.SpireInsertPatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;

public class AbstractPlayerPatch {
    @SpirePatch(
            clz = AbstractPlayer.class,
            method = "damage"
    )
    public static class PatchDamage {
        public static boolean deadByDamage = false;

        @SpireInsertPatch(rloc = 150)
        public static void Insert(AbstractPlayer p, DamageInfo damageInfo) {
            deadByDamage = true;
        }
    }
}
